package cc.lj.internal.coupons.infrastructure.repository;

import cc.lj.internal.core.model.PageParam;
import cc.lj.internal.coupons.domain.ticket.repository.IBatchBindRelationRepository;
import cc.lj.internal.coupons.domain.ticket.repository.ITicketBatchRepository;
import cc.lj.internal.coupons.infrastructure.po.BatchBindRelationPO;
import cc.lj.internal.coupons.infrastructure.po.TicketBatchPO;
import cc.lj.internal.coupons.infrastructure.repository.mysql.BatchBindRelationMysqlRespository;
import cc.lj.internal.coupons.infrastructure.repository.mysql.TicketBatchMysqlRespository;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;


/**
 * 电子券批次绑定关系表仓储实现
 * @author liangxifeng
 * @date 2022-06-12
 */
@Repository("batchBindRelationRepository")
public class BatchBindRelationRepository implements IBatchBindRelationRepository {
    @Resource(name="batchBindRelationMysqlRespository")
    private BatchBindRelationMysqlRespository repository;


    @Override
    public BatchBindRelationPO getById(Integer id) {
        BatchBindRelationPO entityPO = repository.getById(id);
        return entityPO;
    }

    @Override
    public List<BatchBindRelationPO> getList(BatchBindRelationPO entityPO) {
        return repository.getList(entityPO);
    }

}
